import Vue from 'vue'
import Router from 'vue-router'
import Index from '@/views/Index/index'
import Goods from '@/views/Goods/goods'
import GoodsInfo from '@/views/GoodsInfo/goodsinfo'
import GoodsCar from '@/views/GoodsCar/car'
import GoodsOrder from '@/views/GoodsOrder/Goodsorder'
import Mine from '@/views/Mine/mine'
import Query from '@/views/Query/query'
import Edit from '@/views/Edit/edit'
import Test from '@/views/Index/test'
import Pay from '@/views/Query/pay'
import Statistics from '@/views/Statistics/statistics'
Vue.use(Router)

export default new Router({
	routes: [{
			path: '/',
			name: 'Index',
			component: Index
		},
		{
			path: '/index',
			component: Index
		},
		{
			path: '/test',
			component: Test
		},
		{
			path: '/Goods/goods',
			name: 'Goods',
			component: Goods
		},
		{
			path: '/GoodsInfo/goodsinfo',
			name: 'GoodsInfo',
			component: GoodsInfo
		},
		{
			path: '/GoodsCar/car',
			name: 'car',
			component: GoodsCar
		},
		{
			path: '/GoodsOrder/Goodsorder/:id',
			name: 'Goodsorder',
			component: GoodsOrder
		},
		{
			path: '/GoodsOrder/Goodsorder',
			name: 'Goodsorder2',
			component: GoodsOrder
		},
		{
			path: '/Mine/mine',
			name: 'Mine',
			component: Mine
		},
		{
			path: '/Query/query/:id',
			name: 'Query',
			component: Query
		},
		{
			path: '/Edit/edit',
			name: 'Edit',
			component: Edit
		},
		{
			path: '/Query/pay',
			name: 'pay',
			component: Pay
		},
		{
			path: '/Statistics/statistics',
			name: 'Statistics',
			component: Statistics
		}
	]
})
